package SoftwarePrinciple.LiskovSubstitutionPrinciple;

/**
 * @author: Themberfue
 * @date: 2025/8/7 11:35
 * @description:
 */
// 实现形状接口的正方形
public class SquareShape implements Shape {
    private int side;

    public SquareShape(int side) {
        this.side = side;
    }

    public void setSide(int side) {
        this.side = side;
    }

    @Override
    public int calculateArea() {
        return side * side;
    }
}

